//引入event模块
var events = require('events');
//创建eventEmitter对象
var event = new events.EventEmitter();
//绑定some_event事件
event.on('some_event',function(){
    console.log('some_event事件触发');
});
//延迟一秒触发some_event事件
setTimeout(function(){
    event.emit('some_event');
},1000);
console.log('程序执行结束..');
